import { MobXProviderContext } from 'mobx-react';

function User() {
  const { appStore } = useContext(MobXProviderContext);
  return (
    <>
      <div>用户信息1</div>
      <button onClick={() => appStore.setColor('#111')}>点击改变主题颜色</button>
    </>
  );
}

export default User;
